

//
//  SwiftSqlViewController.m
//  数据库OC
//
//  Created by YYY on 2018/1/6.
//  Copyright © 2018年 YYY. All rights reserved.
//

#import "SwiftSqlViewController.h"

#import "SQLite-Swift.h"

@interface SwiftSqlViewController ()

@end

@implementation SwiftSqlViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    UIButton *swift = [UIButton buttonWithType:UIButtonTypeCustom];
    [swift setTitle:@"Swift界面" forState:UIControlStateNormal];
    [swift setTitleColor:[UIColor redColor] forState:UIControlStateNormal];
    swift.titleLabel.font = [UIFont systemFontOfSize:18];
    swift.frame = CGRectMake(100, 90, 200, 30);
    [swift addTarget:self action:@selector(swiftAction) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:swift];
    // Do any additional setup after loading the view.
}

- (void)swiftAction
{
    //OC跳转Swift
    SwiftViewController *swiftVC = [[SwiftViewController alloc]init];
    [self.navigationController pushViewController:swiftVC animated:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
